package cn.com.service;

import java.math.BigDecimal;
import java.util.List;

import cn.com.beans.PAccount;
import cn.com.beans.PAccount;
import org.apache.ibatis.annotations.Param;

public interface PAccountService{

    PAccount findById(Integer id);
    void insertAccount(PAccount account,Integer[] roleIds);

    void updateAcount(PAccount account,Integer[] roleIds);

    boolean deleteByIds(@Param("ids") Integer... ids);

    List<PAccount> findAll(PAccount account);

    PAccount findByAccount(@Param("account") String account,@Param("password") String password);


    boolean selectByPhone(String phone);

    boolean selectByPhoneAndPwd(PAccount pAccount);

    boolean insert(PAccount pAccount);

    PAccount selectByPrimaryKey(Integer aId);


    int updateByPrimaryKey(PAccount pAccount);
}
